package cn.itcast.mq.mq;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class config {

//    @Bean
//    Queue objectQueue(){
//        return new Queue("object.queue");
//    }
//    @Bean
//    Queue objectQueue2(){
//        return new Queue("objects.queue");
//    }

    @Bean
    public MessageConverter jsonMessageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
